<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>JQuery处理动画</title>
		<link rel="stylesheet" type="text/css" href="css/txt.css" />
		<script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
	</head>

	<body>
		<div id="mypic"><img src="img/285094.jpg"></div>
		<div>www.mldn.cn</div>
	</body>

	<script type="text/javascript">
		$(function() {
			// 5秒钟之后实现图片的上滑
			$("img").slideUp(5000);
			// 先上滑然后再下滑(切换状态)
			$("img").slideUp(5000,function(event){
				$(this).slideDown(5000);
			});
		});
	</script>

</html>